package com.zyw.module.console.qywx.api.response;


import com.zyw.net.supports.Response;

/**
 * @author zhangyw
 * @date 2017/3/31 9:55
 */
public class WXBaseResponse implements Response {

    private String errcode;
    private String errmsg;

    public String getErrcode() {
        return errcode;
    }

    public void setErrcode(String errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    @Override
    public boolean isSuccess() {
        return "0".equals(errcode);
    }

    @Override
    public String getMsg() {
        return errmsg;
    }
}
